package com.shop.shop.domain;

import com.vip.common.annotation.Excel;
import com.vip.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 购物车对象 shop_car
 * 
 * @author user
 */
public class ShopCar extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 购物车id */
    private Long carId;

    /** 最大可装数量 */
    @Excel(name = "最大可装数量")
    private Long maxNumber;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long totleNumber;

    public void setCarId(Long carId) 
    {
        this.carId = carId;
    }

    public Long getCarId() 
    {
        return carId;
    }
    public void setMaxNumber(Long maxNumber) 
    {
        this.maxNumber = maxNumber;
    }

    public Long getMaxNumber() 
    {
        return maxNumber;
    }
    public void setTotleNumber(Long totleNumber) 
    {
        this.totleNumber = totleNumber;
    }

    public Long getTotleNumber() 
    {
        return totleNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("carId", getCarId())
            .append("maxNumber", getMaxNumber())
            .append("totleNumber", getTotleNumber())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
